/* 用户中心公共样式 */

/* 补充缺失的Tailwind背景透明度类 */
.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}

.bg-opacity-25 {
    --tw-bg-opacity: 0.25;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}

.bg-opacity-75 {
    --tw-bg-opacity: 0.75;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}

/* 侧边栏样式 */
.user-sidebar {
    position: sticky;
    top: 1rem;
}

.user-sidebar .nav-item {
    transition: all 0.2s ease;
}

.user-sidebar .nav-item:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.user-sidebar .nav-item.active {
    background-color: #eff6ff;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

/* 统计卡片样式 */
.stats-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

/* 快速操作按钮 */
.quick-action-btn {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 用户头像 */
.user-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* 进度条样式 */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* VIP标识 */
.vip-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 等级标识 */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.level-badge.bronze {
    background-color: #cd7f32;
    color: white;
}

.level-badge.silver {
    background-color: #c0c0c0;
    color: #374151;
}

.level-badge.gold {
    background-color: #ffd700;
    color: #374151;
}

.level-badge.diamond {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* 签到日历样式 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-day.today {
    background-color: #3b82f6;
    color: white;
}

.calendar-day.signed {
    background-color: #10b981;
    color: white;
}

.calendar-day.signed.today {
    background-color: #059669;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .user-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .user-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .stats-number {
        font-size: 1.25rem;
    }
    
    .quick-action-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* 加载状态 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
